package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * 业务实体类 - 资产维修登记表
 * ============================================================================
 * 版权所有 2017 。
 *
 * @author XuHeng
 * @version 1.0 2017-02-17 。
 * ============================================================================
 */
@Entity
@Table(name="ec_assetmaintain")
public class AssetMaintain extends BaseFlowEntity {

    private static final long serialVersionUID = 3116161738038080609L;
    /**
     * 对应的资产入库登记表
     */
    private Asset asset;

    /**
     * 资产名称 name
     */

    /**
     * 维修原因
     */
    private String maintainReason;

    /**
     * 维修单位
     */
    private String maintainUnit;

    /**
     * 维修结果 0:维修完成  1:无法修复
     */
    private int maintainResult;

    /**
     * 维修费用（元）
     */
    private Double maintainMoney;

    /**
     * 提交日期
     */
    private Date dateApply;
    /**
     * 文档状态数值
     */
    private int numStatus;
    /**
     * 文档状态文字
     */
    private String txtStatus;

    /**
     * 表单名称
     */
    private String form;

    @Column(nullable=false, columnDefinition = "varchar(50) default '资产维修登记表'")
    public String getForm() {
        return form;
    }

    public void setForm(String form) {
        this.form = form;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    public Asset getAsset() {
        return asset;
    }

    public void setAsset(Asset asset) {
        this.asset = asset;
    }

    public String getMaintainReason() {
        return maintainReason;
    }

    public void setMaintainReason(String maintainReason) {
        this.maintainReason = maintainReason;
    }

    public String getMaintainUnit() {
        return maintainUnit;
    }

    public void setMaintainUnit(String maintainUnit) {
        this.maintainUnit = maintainUnit;
    }

    public int getMaintainResult() {
        return maintainResult;
    }

    public void setMaintainResult(int maintainResult) {
        this.maintainResult = maintainResult;
    }

    public Double getMaintainMoney() {
        return maintainMoney;
    }

    public void setMaintainMoney(Double maintainMoney) {
        this.maintainMoney = maintainMoney;
    }

    public Date getDateApply() {
        return dateApply;
    }

    public void setDateApply(Date dateApply) {
        this.dateApply = dateApply;
    }

    public int getNumStatus() {
        return numStatus;
    }

    public void setNumStatus(int numStatus) {
        this.numStatus = numStatus;
    }

    public String getTxtStatus() {
        return txtStatus;
    }

    public void setTxtStatus(String txtStatus) {
        this.txtStatus = txtStatus;
    }

}
